package org.travel.dal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.forbes.comm.entity.BaseEntity;

/**
 * Table: f_sys_permission
 */
@Data
@ApiModel(description="权限")
@TableName("f_sys_permission")
public class SysPermisson extends BaseEntity {
    /**
     * 父级id
     *
     * Table:     f_sys_permission
     * Column:    parent_id
     * Nullable:  true
     */
    @ApiModelProperty(value = "父级id",example="0")
    private Long parentId;

    /**
     * 资源名称
     *
     * Table:     f_sys_permission
     * Column:    name
     * Nullable:  true
     */
    @ApiModelProperty(value = "资源名称",example="")
    private String name;

    /**
     * 菜单权限编码
     *
     * Table:     f_sys_permission
     * Column:    perms
     * Nullable:  true
     */
    @ApiModelProperty(value = "菜单权限编码",example="")
    private String perms;

    /**
     * 组件
     *
     * Table:     f_sys_permission
     * Column:    component
     * Nullable:  true
     */
    @ApiModelProperty(value = "组件",example="")
    private String component;

    /**
     * 组件名称
     *
     * Table:     f_sys_permission
     * Column:    component_name
     * Nullable:  true
     */
    @ApiModelProperty(value = "组件名称",example="")
    private String componentName;

    /**
     * 是否聚合子路由
     *
     * Table:     f_sys_permission
     * Column:    always_show
     * Nullable:  true
     */
    @ApiModelProperty(value = "是否聚合子路由",example="")
    private String alwaysShow;

    /**
     * 是否路由
     *
     * Table:     f_sys_permission
     * Column:    is_route
     * Nullable:  true
     */
    @ApiModelProperty(value = "是否路由",example="")
    private String isRoute;

    /**
     * 是否子集
     *
     * Table:     f_sys_permission
     * Column:    is_leaf
     * Nullable:  true
     */
    @ApiModelProperty(value = "是否子集",example="")
    private String isLeaf;

    /**
     * 是否隐藏
     *
     * Table:     f_sys_permission
     * Column:    is_hidden
     * Nullable:  true
     */
    @ApiModelProperty(value = "是否隐藏",example="")
    private String isHidden;

    /**
     * 排序号
     *
     * Table:     f_sys_permission
     * Column:    sort_no
     * Nullable:  true
     */
    @ApiModelProperty(value = "排序号",example="0")
    private Integer sortNo;

    /**
     * 描述
     *
     * Table:     f_sys_permission
     * Column:    description
     * Nullable:  true
     */
    @ApiModelProperty(value = "描述",example="")
    private String description;

    /**
     * 路由请求地址
     *
     * Table:     f_sys_permission
     * Column:    redirect
     * Nullable:  true
     */
    @ApiModelProperty(value = "路由请求地址",example="")
    private String redirect;

    /**
     * 后台请求地址
     *
     * Table:     f_sys_permission
     * Column:    url
     * Nullable:  true
     */
    @ApiModelProperty(value = "后台请求地址",example="")
    private String url;

    /**
     * 类型(0目录1页面2按钮)
     *
     * Table:     f_sys_permission
     * Column:    type
     * Nullable:  true
     */
    @ApiModelProperty(value = "类型(0目录1页面2按钮)",example="0")
    private Long type;

    /**
     * 等级(0一级,1二级,2三级)
     *
     * Table:     f_sys_permission
     * Column:    grade
     * Nullable:  true
     */
    @ApiModelProperty(value = "等级(0一级,1二级,2三级)",example="0")
    private Long grade;

    /**
     * 菜单图标
     *
     * Table:     f_sys_permission
     * Column:    icon
     * Nullable:  true
     */
    @ApiModelProperty(value = "菜单图标",example="")
    private byte[] icon;
}